<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="id" name="id" th:value="${links.id}"  type="hidden">
												
																																	<div class="form-group">	
								<label class="col-sm-3 control-label">名称：</label>
								<div class="col-sm-8">
																		<input id="name" name="name" th:value="${links.name}" class="form-control" type="text">
																	</div>
							</div>
																											<div class="form-group">	
								<label class="col-sm-3 control-label">描述：</label>
								<div class="col-sm-8">
									<textarea id="desc"  name="desc" class="form-control" rows="3" th:text="${links.desc}"></textarea>
								</div>
							</div>
																											<div class="form-group">	
								<label class="col-sm-3 control-label">链接地址：</label>
								<div class="col-sm-8">
																		<input id="url" name="url" th:value="${links.url}" class="form-control" type="text">
																	</div>
							</div>
																											<div class="form-group">	
								<label class="col-sm-3 control-label">状态：</label>
								<div class="col-sm-8">
									<select id="status" name="status"  class="form-control valid" style="width: 100%" >
										<option value="0" th:selected="${links.status == 0 }">正常</option>
										<option value="1" th:selected="${links.status == 1 }">废弃</option>
									</select>
								</div>
							</div>
																											<div class="form-group">	
								<label class="col-sm-3 control-label">创建时间：</label>
								<div class="col-sm-8">
									<input id="creatdate" name="creatdate" th:value="${#dates.format(links.creatdate,'yyyy-MM-dd HH:mm:ss')}"
										   class="form-control" type="text" readonly = "readonly">
								</div>
							</div>
																				<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
									<button type="button" class="btn closeBtn" onclick="myClose();">关闭</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<!--<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>-->
	<script type="text/javascript" src="/js/appjs/hnzk/links/edit.js">
	</script>
	<script type="text/javascript">
		function myClose(){
			var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
			parent.layer.close(index); //再执行关闭

		}

	</script>
</body>
</html>
